package com.ibm.psbc.cloud;

import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@DubboService
//@IdmfDubboService(group = "${cluster}-${dusId}", serviceCodeSpliter = UserServiceMultiSpliter.class)
@Component
public class UserServiceImpl implements UserService {
	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Value("${dusId}")
	String group;
	@Override
	public User hello(User user) {
		logger.info("Hello from service to :{}@{}", user, group);
		user.setFrom(group);
		return user;
	}

}
